package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrRelation;
import com.atguigu.gulimall.product.vo.GroupWithAttrs;
import com.atguigu.gulimall.product.vo.SpuGroupName;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author tr
 * @email tr@gmail.com
 * @date 2023-04-18 23:50:05
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageWithCondition(Map<String, Object> params, Long catelogId);

    AttrGroupEntity setCategoryPath(AttrGroupEntity attrGroup);

    List<AttrEntity> RelationAttr(Long attrgroupId);

    void DeleteRelation(List<AttrRelation> relations);

    List<GroupWithAttrs> getGroupWithAttrs(Long catelogId);

    List<SpuGroupName> getGroupWithAttrsBySpuId(Long catalogId, Long spuId);
}

